<?php
/**
 * CEOfox
 *
 * @copyright  Copyright 2011-2012 CEOfox, Inc.
 * @license    http://ceofox.com/pages/license
 * @version    $Id: process.class.php 67082 2013-05-24 09:40:17 $
 * @author     CEOfox, Inc.
 */
?>
<?php

defined('PHPFOX') or exit('NO DICE!');

class Follow_Service_Notifications_Process extends Phpfox_Service
{
    public function __construct()
    {
        $this->_sTable = phpfox::getT('follow_notification');
    }
    
    public function deleteAll()
    {
        $this->database()->delete($this->_sTable, 'user_id = ' . Phpfox::getUserId());
        
        return true;
    }
    public function deleteById($iId)
    {
        $this->database()->delete($this->_sTable, 'notification_id = ' . (int) $iId . ' AND user_id = ' . Phpfox::getUserId());
        
        return true;
    }
}
?>
